package com.dwms.feign.seller;

import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.base.sellerCeb.request.SellerCebQueryRequest;
import com.dwms.entity.base.sellerCeb.request.SellerCebRequest;
import com.dwms.entity.base.sellerCeb.response.SellerCebResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: SellerCebController
 * @Description: SellerCeb
 * @Create 2025-08-27 14:41:10
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(value = "base-server", path = "/sellerCeb")
public interface SellerCebFeignClient {

    /**
     * 保存
     *
     * @param sellerCebRequest
     *          请求参数
     * @return
     */
    @PostMapping("/save")
    Result save(@RequestBody SellerCebRequest sellerCebRequest);

    /**
     * 修改
     *
     * @param sellerCebRequest
     *          请求参数
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody SellerCebRequest sellerCebRequest);
    

    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<SellerCebResponse>> findPage(@RequestBody SellerCebQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);

    /**
     * 删除
     *
     * @param query
     *          ID
     * @return
     */
    @PostMapping("/delete")
    Result delete(@RequestBody QueryRequest query);

}
